Cannot configure hostname keeps on changing after reboot CentOS 6 + nginx [on hold]
Posted
by
The Wolf
on Server Fault
See other posts from Server Fault
or by The Wolf
Published on 2014-06-01T19:28:18Z
Indexed on
2014/06/01
21:31 UTC
Read the original article
Hit count: 224
I just finished this tutorial I found online: http://www.unixmen.com/install-lemp-nginx-with-mariadb-and-php-on-centos-6/
Now, I am having trouble making a hostname, you can see the result at: http://www.intodns.com/busilak.com
here are my confs
/etc/hosts
127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4
# Auto-generated hostname. Please do not remove this comment.
198.49.66.204 host.busilak.com busilak.com host
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
/etc/sysconfig/network
NETWORKING="yes"
GATEWAYDEV="venet0"
NETWORKING_IPV6="yes"
IPV6_DEFAULTDEV="venet0"
HOSTNAME="host.busilak.com"
/etc/nginx/conf.d/default.conf
server {
#listen 80;
#server_name host.busilak.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
Question:
Is there anything I should have done? I just want to use my domain: busilak.com as default domain for my server, such that when I open busilak.com it would point readily to my VPS ip address.
© Server Fault or respective owner